<template>
	<view>
		<view class="tab">
			<view :class="['tab-item', tabIndex == 1 ? 'tab-active' : '']" @click="tabIndex = 1">
				<text>好友申请</text>
				<image v-if="tabIndex == 1" src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/index-bottom.png" style="width: 56rpx;height: 4rpx;"
					mode=""></image>
			</view>
			<view :class="['tab-item', tabIndex == 2 ? 'tab-active' : '']" @click="tabIndex = 2">
				<text>活动申请</text>
				<image v-if="tabIndex == 2" src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/index/index-bottom.png" style="width: 56rpx;height: 4rpx;"
					mode=""></image>
			</view>
		</view>
		<view class="middle">
			<view class="label">待答复<text>(0)</text></view>
			<view class="list">
				<view class="item">
					<view class="avatar">
						<!-- <image src="../../static/logo.png" mode=""></image> -->
					</view>
					<view class="right">
						<!-- <view class="flex-1">
							<view>
								<view class="name">星爷图</view>
								<view class="sex">
									<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/girl.png" mode=""></image>
									<image src="https://zaiyiqi-1322608024.cos.ap-nanjing.myqcloud.com/static/img/boy.png" mode=""></image>
								</view>
							</view>
						</view>
						<view class="time">
							03-09 13:12
						</view> -->
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tabIndex: 1, // 1我的申请 2申请列表
			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	image {
		display: block;
	}

	.tab {
		display: flex;
		margin-bottom: 32rpx;

		&-item {
			flex: 1;
			color: #8A9199;
			text-align: center;
			font-weight: 400;
			font-size: 28rpx;
			display: flex;
			flex-direction: column;
			align-items: center;

			image {
				margin-top: 6rpx;
			}
		}

		&-active {
			color: #2E3033;
		}

	}

	.middle {
		padding: 32rpx 0 0 32rpx;

		.label {}

		.list {
			.item {
				.avatar {
					image {
						width: 80rpx;
						height: 80rpx;
						border-radius: 50%;
					}
				}

				.right {
					margin-left: 16rpx;
					padding-right: 32rpx;

					.name {
						font-weight: 400;
						font-size: 28rpx;
						color: #2E3033;
					}

					.sex {
						margin-left: 8rpx;
						width: 36rpx;
						height: 28rpx;
					}

					.content {
						font-weight: 400;
						font-size: 24rpx;
						color: #8A9199;
					}

					.time {
						font-weight: 400;
						font-size: 24rpx;
						color: #8A9199;
					}
				}
			}
		}
	}
</style>